package com.boot.unity.api.wx.controller;

import com.boot.unity.api.wx.entity.TrainApplyCoach;
import com.boot.unity.api.wx.service.WxApplyCoachService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 教练助手
 */
@RestController
@RequestMapping("/wx/applyCoach")
@Validated
public class WxApplyCoachController {
    private final Log logger = LogFactory.getLog(WxApplyCoachController.class);
    @Autowired
    private WxApplyCoachService wxApplyCoachService;

    /**
     * 认证信息保存
     *
     * @param applyCoach
     * @return
     */
    @PostMapping("save")
    public Object save(@RequestBody TrainApplyCoach applyCoach) {
        return wxApplyCoachService.save(applyCoach);
    }


}
